started refactoring user controller