check docstatus before updating employee