fixed issue attachment on validation fail