little modification in after login redirection