Fix login with encrypted passwords