created add user functionality, added validations