Adding extra code

adding condition which prohibits non-authenticated user from accessing homepage