restricted access to certain pages

if user is not logged in, it can not access home and upload page