Add validator for login