generate users functionality added