check if user is logged in
Merge pull request #6056 from owncloud/check_login

check if user is logged in