fix sign in redirection issues