Fixed redirect issue for signed in users