Updated the create_user function with the new criteria