A little refactoring in users controller