username and email validation fixed