Fix login key equals check