How to populate email field based on the dropdown selection?