cleaning error for ADD and EDIT inputs

occured as the results of adding extra algorthim for select with
multiple table references