added validation of prencence of name and email for users. and validation that email follows correct format. and validation that email is unique