Patching create_user function