Fixes the correct display of error and success validation