Added redirect to home when not logged in