checking if null in ValidateUser