Replace deprecated UserManager by the UserProvider