shell: Add input space validation when adding a server

Add input validation and visual style when error occurs.
Remove get_focus and lose_focus functions.
Add some restrictions for empty host name in case "Next" button is enabled accidentally.

Fixes #943