Generating the user and session controllers