-NEW- Created main window. Authorization works properly