Fixing optional validator not removing last error