Refactored user controller bringing code to the model to improve tell don't ask design pattern