@Override
	public boolean getUserMatchesPassword(String username, String password) {
		boolean userMatchesPassword = false;

		// Find an user record in the entity bean User, passing a primary key of
		// username.
		User user = emgr.find(entity.User.class, username);

		// Determine whether the user exists and matches the password
		if (user != null && user.getPassword().equals(password)) {
			userMatchesPassword = true;
		}

		return userMatchesPassword;
	}