add print statements to check for logged in status