set error message for body field