fix redirect on auto log in