survey checks to see if user is logged in first