added registering of users