fixed the error display problem on the add interest and skill form, refa...

...ctored a bit of code