add validation for login form