added email check and password confirm for user registration