Added redirect for logged out users