validate user data while user registers