fixng login redirct issue