refactoring user controller

refactoring user controller