Passing fields from one form to another is not working as expected