Created method to check if the user is logged in

Fixes #16
Merge remote-tracking branch 'origin/is-logged-in' into dev