import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.geometry.Pos;

import javafx.scene.layout.BorderPane;
import javafx.scene.layout.FlowPane;
import userIO.*;
import ConnectToDB.*;
import static javafx.application.Application.launch;

/**
 *
 * @author Soukaina
 */
public class UserLogin extends Application {
       
    //Create a Button 
    Button loginBtn = new Button("Login");
    //Create Label
    Label usernameLabel = new Label("Enter username :");

    //Create Text Area
    TextField userNameInput = new TextField();
    

    FlowPane root; 
    
    @Override
    public void start(Stage primaryStage) {
  GridPane pane = new GridPane();
        pane.setAlignment(Pos.CENTER);
        pane.setHgap(10);
        pane.setVgap(20);

        //add the nodes in the pane
        pane.add(usernameLabel, 0, 0);
        pane.add(userNameInput, 1, 0);
       
        pane.add(loginBtn,1,2);

        //Create a border pane and place the other panes in it.
        BorderPane borderPane = new BorderPane();
        borderPane.setCenter(pane);
        


        loginBtn.setOnAction(new EventHandler<ActionEvent>() {
            
            @Override
            public void handle(ActionEvent event) {
                 ConnecToDB conn=new ConnecToDB();
                 UserIO userIO=new UserIO();
                 userIO.readUsers(conn);
                 if(userIO.checkTheUserOut(userNameInput.getText())!=0)
                 {
                     System.out.println("User existe");
                     // Rachid's code 
                 }
                 else 
                 {
                     //send the user to a registration page..... (Blake's code)
                     System.out.println("user doesn't existe.Create a new one...");
                 }
            }
        });
        
        Scene scene = new Scene(borderPane, 400, 350);
        primaryStage.setTitle(" User login ");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }
    
}

@@ -338,18 +338,16 @@
 y.Pos;%0D%0A
-%0D%0A
 import j
@@ -1375,16 +1375,73 @@
     %0D%0A%0D%0A
+       // Envent handler when the login button is clicked
 %0D%0A      
@@ -1584,24 +1584,68 @@
 t event) %7B%0D%0A
+                   // creating my objects %0D%0A
             
@@ -1682,16 +1682,17 @@
 cToDB();
+ 
 %0D%0A      
@@ -1769,24 +1769,135 @@
 ers(conn);%0D%0A
+                 %0D%0A                 // if the user name exist process whatever operations in the if statment %0D%0A
             
@@ -2059,25 +2059,65 @@
     
-// Rachid's code 
+%0D%0A                     // Rachid's code can go here......
 %0D%0A  
@@ -2205,64 +2205,23 @@
   //
-send the user to a registration page..... (Blake's code)
+ error message 
 %0D%0A  
@@ -2299,24 +2299,143 @@
  one...%22);%0D%0A
+                     %0D%0A                      //send the user to a registration page..... (Blake's code can go here)%0D%0A%0D%0A
             
@@ -2470,32 +2470,61 @@
    %7D);%0D%0A        
+// put the scene in the stage
 %0D%0A        Scene 

Update UserLogin.java