Àdded Logincheck

Check to see if a user is logged in and allowed on the page