AddUser updated with error handling