Updateing input fileds and required input fields