add status variables to indicate connection status
allow empty pin code