Implemented the connection for the user