added the validation of attachments to the gem so that we dont have reload issues when in development mode