Added login validator
Clean up
Fix error handling
Validate the login form first