fixed bug where app would crash when no text was submitted