Method for validating login name