Error handling --unfinished
Fixed error messages on login with a flash