fixed routing error after login