Validating the branches via AJAX when selecting them before submitting.