Change number validation to ng-pattern checking to avoid scrolling issues