added validation on new and edit page for article