fix errors in page validation. input[type="date"] change on input[type="text"] in code