created the controller for users