added email validation and uniquess and name validation