This open source library might be helpful if someone wants to use textfield which handles the data validation and error display by itself.