implemented Username and email validation on server side.