Display error dialog when the user enters whitespace in the name field
Try out the newer connect() syntax
Change back to the old connect syntax