generating users controller