public User verifyUser(User user){
		try {
			Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
			String url = "jdbc:derby:" + DBName;
			Connection connection = DriverManager.getConnection(url);
			Statement statement = connection.createStatement();
			String sqlStatement = "SELECT * FROM users WHERE juser='" + user.getUsername() + "' AND jpassword='" + new String(user.getPassword()) + "'";
			ResultSet rs = statement.executeQuery(sqlStatement);
			if (rs.next()) {
				user.setID(rs.getInt("uid"));
				user.setValidLogin(true);
				user.setNick(rs.getString("jnick"));
				user.setLevel(rs.getInt("level"));
				user.setCurrentExp(rs.getInt("currentExp"));
				user.setrCoins(rs.getInt("rcoins"));
				user.setvCoins(rs.getInt("vcoins"));
				user.setPoints(rs.getInt("points"));
				user.setLastLogin(rs.getTimestamp("jlastloggin"));
			}
			statement.close();
			connection.close();
		} catch (Exception e) {
			new ServerResultFrame(e.getMessage());
		}
		return user;
	}