fixed problems with password and user disconnection