Form displaying error message resulting multiple submissions