Refactor creation of filled Task form
Test error message for invalid dates