Fix redirect upon login filter.