How to populate form fields from other fields on the same form