Fixed a null pointer exception. Started checkText logic.