made sure login displays validation errors correctly