added validation for key and utts