added if to locked user to dreamuserprovider