attachment ajax validation