Removed models and updated code of text validation process.