Added editor form validation. If have time move validation into a directive