Adding a verification for the number of attachments