Fixes double submission of form. [Fix #1]