Errors in add/edit forms fixed