@FXML
    protected void login(ActionEvent event) {
            loginButton.setDisable(true);
            progressIndicator.setVisible(true);
            progressIndicator.setProgress(ProgressIndicator.INDETERMINATE_PROGRESS);
            LoginService loginService = new LoginService();
            loginService.setOnSucceeded(new EventHandler<WorkerStateEvent>() {

                @Override
                public void handle(WorkerStateEvent t) {
                    if (t.getSource().getValue().equals(Boolean.TRUE)) {
                        Stage stage = new Stage();
                        stage.setTitle("Music Vim"); 
                        Pane myPane = null;
                        FXMLLoader myLoader = new FXMLLoader(getClass().getResource("/Views/MusicVim.fxml"));
                        try {
                            myPane = (Pane)myLoader.load();
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                  
                        
                       
                        MusicVimController musicVimController = (MusicVimController)myLoader.getController();
                        Scene scene = new Scene(myPane);
                        stage.setScene(scene);

                        prevStage.close();
                        musicVimController.setStage(stage);
                        stage.show();
                    } else {

                        loginButton.setDisable(false);
                    }
                }
            });

            loginService.start();
            System.out.println("login service started");
    }