Added validPassword method to user model
Added login form