improved the look of login errors slightly
cleaned up error handling, added it to layout.erb