Custom UserProvider class.