updated check for existing email, added new user insertion via ajax