Refactored create_user controller