Remember the user's details

Store the input data (name, profession) in localStorage, if available.

Note: if third-party data storage has been blocked by the user, localStorage (and cookies) isn't available in an iframe. May want to consider opening in a pop-up window instead.