added helper methods for user validation