fixing the access and renaming validation rules var