fix a boolean issue with login