added validation functions and adminlog support