test validation for user login