Added deprecation warnings when using the UserManager as user provider

The dedicated user providers should be used instead.
fixed the order of arguments for trigger_error