solved redirection problem after login