Copied the validators from wradmin.