fix error issue on succesful insert and css wrap issue on valid error