validation for login page completed