refactored partials and corrected due date validations