Problem while validation when using submit_to_remote

hello friends,
i have used submit_to_remote in my _form.rhtml and filled some fields.
when i try to submit this form it does rails validation and show errors
for the fields which i got through submit_to_remote and made them as
blank.

anyone knows to solve this…, guide me…