Fixing a bug with the form handler as it wasn't executing properly