Modified validator for mem and aln and turned on cleanup for aln