Enter now publish

Small bug fix and enter on field while connected now publish a message
if both topic and message > 0