How validation done changed slightling in 1.3, this implements https://github.com/angular-ui/ui-date/pull/94