flashes and correct error messages now work when logging in