Added different validation for date inputs
Amend functions for checking if date has error