Refactoring FormElements, dates comparison checking (#7)