add check for logged out
add check for logged out

fixes #256

Fmstrat/owncloud,lahmizzar/owncloud,hypery2k/owncloud,amirshaikh49/owncloud,amirshaikh49/owncloud,lahmizzar/owncloud,mhtranbn/owncloud,mhtranbn/owncloud,hypery2k/owncloud,lahmizzar/owncloud,amirshaikh49/owncloud,hypery2k/owncloud,hypery2k/owncloud,lahmizzar/owncloud,hypery2k/owncloud,amirshaikh49/owncloud,Fmstrat/owncloud,mhtranbn/owncloud,amirshaikh49/owncloud,Fmstrat/owncloud,lahmizzar/owncloud,hypery2k/owncloud,mhtranbn/owncloud,amirshaikh49/owncloud,mhtranbn/owncloud,lahmizzar/owncloud,Fmstrat/owncloud,mhtranbn/owncloud,Fmstrat/owncloud,Fmstrat/owncloud