Added username validation and email validation