attachment model validation