fix regression for login