adding a beans and a validator