So I have the following:
Name:
$defaults is a local variable within the scope of the show_form function. You'll want to return it from the function and change your first line of code to this:
$defaults
show_form
$defaults = show_form();