fix connection with username and password