sS assistant_checkPasswordStructure(S pw) { if (l(pw) < 8) ret "Password must be at least 8 characters long"; if (containsSpace(pw)) ret "Password must not contain spaces"; null; }