added email verification check and username length check in user registration