Adding auth decorator to sync_record view, fixing http response.