textfield added with empty space checking