Fixed login bug for basic authenticator