fix redirect issue when not signed in