adds some validations and working on date and time highlighting