added logout, logged in check not currently working