Fix form validation in user availability edit page.

Using these extra lines seems more clean to me. For example in the previous version you also need to check ``replacement_rep in cdata`` that causes a really big ``if`` clause.