I'm building a secure website, closer to banking. I'm bit hesitant to hide the logout link with the error/warning message. I think design look simplistic when I add error/warning over the logout panel. I want UX experts out there to help me out with this dilemma? Here are some prototype images.
[![enter image description here](https://i.stack.imgur.com/meJoM.jpg)](https://i.stack.imgur.com/meJoM.jpg)

Notice I have a close button (X) on both error/warning message. User can close the message to see the log out button.

**Here is the reasoning why I want to do like this:**

Basically the error/warning message act like notification message, even success message will go there. I wanted to put this on the header because I wanted to make my notification sit on the master page rather on the content page. This way I can show notification consistently. 

![mockup](https://i.stack.imgur.com/y354k.png)

[download bmml source](/plugins/mockups/download?image=http%3a%2f%2fi.stack.imgur.com%2fy354k.png) – Wireframes created with [Balsamiq Mockups](http://www.balsamiq.com/products/mockups)