Dev: fix js date validation

Dev: validateInput() function was not called