added error validations to creating new user