added isLoggedIn()

Signed-off-by: Christian Lüthold <biocodr@gmail.com>
added isLoggedIn() test, not yet finished

Signed-off-by: Christian Lüthold <biocodr@gmail.com>