Added format validity for date