added an email validator to screen emails when registering a new user