Check for valid user in provider

Should fix that kind of stuffs : https://github.com/puppetlabs/puppetlabs-postgresql/pull/394