public boolean validatePassword(String password, String confirmation, String passwordKey, String confirmationKey, int passwordMinLength, int passwordMaxLength) {
		boolean success = true;
		

		if(password.isEmpty()) {
			virheet.addValue(passwordKey, "Salasana ei saa olla tyhjä!");
			success = false;
		}
		else if(password.length() < passwordMinLength) {
			virheet.addValue(passwordKey, "Salasanan pitää olla vähintään " + passwordMinLength + " pitkä!");
			success = false;
		}
		else if(password.length() > passwordMaxLength) {
			virheet.addValue(passwordKey, "Salasana saa olla maksimissaan " + passwordMaxLength + " pitkä!");
			success = false;
		}
		
		if(!confirmation.equals(password)) {
			virheet.addValue(confirmationKey, "Salasanat eivät täsmää!");
			success = false;
		}
		
		return success;
	}