redirect on login fix for prev commit