adds html and css after validation