fix validation does not work