refactored contacts controller user creation logic