add some basic validation stuff