Added flag form validation using flag and link type plugins.