Fix login redirect on main page