public LoginPanel() {
    this.setLayout(logInLayout);

    layoutConstraints.insets = new Insets(5, 5, 5, 5);
    
    logo.setIcon(new ImageIcon(LOGO));
    layoutConstraints.gridwidth = 2;
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 0;
    this.add(logo, layoutConstraints);
    
    layoutConstraints.gridwidth = 2;
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 1;
    this.add(Box.createRigidArea(new Dimension(0, 7)), layoutConstraints);
    
    layoutConstraints.gridwidth = 1;
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 2;
    this.add(usernameLabel, layoutConstraints);

    layoutConstraints.gridx = 1;
    layoutConstraints.gridy = 2;
    usernameTextField.addKeyListener(new EnterKeyListener());
    this.add(usernameTextField, layoutConstraints);

    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 3;
    this.add(passwordLabel, layoutConstraints);

    layoutConstraints.gridx = 1;
    layoutConstraints.gridy = 3;
    passwordTextFields.addKeyListener(new EnterKeyListener());
    this.add(passwordTextFields, layoutConstraints);

    layoutConstraints.gridwidth = 2;
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 4;
    this.add(loginButton, layoutConstraints);
    
    layoutConstraints.gridwidth = 2;
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 5;
    this.add(Box.createRigidArea(new Dimension(0, 80)), layoutConstraints);
    
    layoutConstraints.gridx = 0;
    layoutConstraints.gridy = 6;
    registerLabel.setForeground(new Color(37, 74, 158));
    Font font = registerLabel.getFont();
    Map attributes = font.getAttributes(); 
    attributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
    registerLabel.setFont(font.deriveFont(attributes));
    this.add(registerLabel,layoutConstraints);
  }