added add,remove functionality and form validation