add validator functions