Validation of form fields

Hi,
I have a form that contains two fields :
Actor - text field
Movie - text field. On clicking Add another movie link, I am
displaying another text field for entering another movie using AJAX.
So on clicking submit , i am doing validations for the form fields. If
there is an error in the form fields, the text fields we have added
using AJAX, disappears. Is there any to solve this problem ?

Also what name should I give to the added text field for Movie ? In
movies table the name of the field is moviename.
Can we give like <%= text_field ‘movie’,‘moviename’ %>.
But we have to save all the movie names entered into the movies table
with actor_id as the foreign key. How should we name the movie text
field in this case?

Can anybody help me out in this?