refactored validations for github user account