adding message field to constraints