add inteliigent redirects after login