Use animate.css to shake the login box on error

Also tweaked the layout to avoid the slide-up when a message is shown