Fix submit button redirecting to null