implemented new redirects
fixed routing after login