My code checks as each character is typed, therefore literally stopping you typing text