Flashing errors for login, fixed login