editing for validation for login page