Created UsersController and refactored code for params