Fixing redirections after login.