Fix form validation in user availability edit page.

Instead of adding all these lines, you can just add to the if clause the expression `'expected_date in cdata'`.