changed validation interface.