refactor UsersController to reduce complexity

Refactored: UsersController#create to some extent reduce complexity. 

Thanks