Refactoring user's controller