Hi Theodoulos,
The post back on the server-side validation clears the attachment.
You might want to consider adding client-side validation to your form for better user experience, where the server-side validation is a fallback in case client-side fails for some reason.
Client-side validation should stop the attachment being cleared.