my $step = (defined $cgi->param('step') ? $cgi->param('step') : 1);