Add redirect functionality for visiting pages before signing in