Now setting onsubmit and onclick to empty string instead of null