Generating users controller