How can I pre populate a form based on a value entered by the user?