javascript and ajax check of username and email validation