Implement validation in TextField class extension