small fix to regression bug on login