Fixed a bug regarding previously existing connections when creating new user