modifications to make local logins work.