registered user is added to db