Fix validation for mod login