Added lines to determine anonymous user

This is how we can check whether a public user is using our service or
not.