Added an denial of acess to new posts when user is not logged in