register user to db