Added validation for date fields on add sample page