added confirmation that user is logged in