check username and email before registering a user