Fix broken UI for login and register error messages

Fix for this UI bug

![Broken UI](http://i.imgur.com/3EcZXdq.png)