Added Clear Button and fixed empty form submission bug