Make pattern errors clear out

'$scope.orderform' is not accessible until the button is hit,
so we check for its existence in 'reset()' before doing '$setPristine()'