Added hook to allow some action if input limit has reached.

Added hook to allow some action if input limit has reached.

Example:
![validation](https://cloud.githubusercontent.com/assets/110226/5326700/40039d62-7d27-11e4-9305-5243be5e3ea6.gif)