displays flash error if date field(s) are empty