Solved issues 1 and 2

Fixed: Main window load to slow
Fixed: Login window wont connect with the server