Added code to generate users

Added code to generate users