Added check for user being logged in to update sync requests