private void checkPasswordString (String sentPassword)  throws ValidationException {
        if (sentPassword != null && !sentPassword.isEmpty()) {

            if (sentPassword.length() < 6) {
                throw new ValidationException("Password is too short. The length is " + sentPassword.length() + " and should be longer than 5");
            }
        } else {
            throw new ValidationException("Password should not be null");
        }
	}