required fields submission bug fix