Updated inputvalidation to handle new dateformat