public LogInFrame() {
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		getContentPane().setLayout(new MigLayout("", "[fill][185.00][30.00][41.00]", "[][][][][][][][fill][pref!,center][][][][][]"));
		setSize(275,450);
		JLabel usernameLabel = new JLabel("Username:");
		usernameLabel.setHorizontalAlignment(SwingConstants.LEFT);
		getContentPane().add(usernameLabel, "cell 1 2 2 1,alignx left");
		
		usernameBox = new JTextField();
		getContentPane().add(usernameBox, "cell 1 3 2 1,growx");
		
		verticalStrut_4 = Box.createVerticalStrut(20);
		getContentPane().add(verticalStrut_4, "cell 1 4 2 1");
		
		JLabel passwordLabel = new JLabel("Password:");
		getContentPane().add(passwordLabel, "cell 1 5 2 1,alignx left");
		
		passwordBox = new JPasswordField();
		passwordBox.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				btnLogIn.doClick();
			}
		});
		getContentPane().add(passwordBox, "cell 1 6 2 1,growx");
		
		
		btnLogIn = new JButton("Log In");
		btnLogIn.addActionListener(new ActionListener() {
			@SuppressWarnings("deprecation")
			public void actionPerformed(ActionEvent e) {
				if (usernameBox.getText().trim().isEmpty() || passwordBox.getText().trim().isEmpty()){
					setInfo("All boxes must be filled");
					return;
				}
				Client.attemptLogIn(usernameBox.getText(),passwordBox.getText().hashCode());
			}
		});
		
		verticalStrut_3 = Box.createVerticalStrut(20);
		getContentPane().add(verticalStrut_3, "cell 2 7");
		getContentPane().add(btnLogIn, "cell 1 9 2 1,growx");
		
		verticalStrut_1 = Box.createVerticalStrut(20);
		getContentPane().add(verticalStrut_1, "cell 1 10 2 1");
		
		btnForgotPassword = new JButton("Forgot Password?");
		getContentPane().add(btnForgotPassword, "cell 1 11 2 1,growx");
		
		verticalStrut = Box.createVerticalStrut(20);
		getContentPane().add(verticalStrut, "cell 1 12 2 1");
		
		btnResister = new JButton("Register");
		getContentPane().add(btnResister, "cell 1 13 2 1,growx");
		
		getContentPane().setPreferredSize(new Dimension(255,430));
		
		verticalStrut_2 = Box.createVerticalStrut(20);
		getContentPane().add(verticalStrut_2, "cell 2 8");
		
		infoLabel = new JLabel("");
		infoLabel.setForeground(Color.RED);
		getContentPane().add(infoLabel, "cell 1 7");
		
		setVisible(true);
		setLocationRelativeTo(null);	
	}