fixed bug which prevents adding todo views if value of input is '' or empty