Add not logged in check

Signed-off-by: Graham Chiu <compkarori@gmail.com>