Changed buttons back to type='submit'