Added additional logic to debug to only display if values are present upon submit.