fixed redirect on login