add how to check if user is logged in

Might be useful