Due to error on submission, form needs to be submitted twice