Added redirect to home page for an unauthenticated user