fixed bug for not getting connection when new user is added