Fix redirect upon login.