added users functionality