add how to check if user is logged in
Merge pull request #12 from pauletienney/patch-1

add how to check if user is logged in