Implemented new login frame and improved connecting to servers