adding users functionality