Validates password.
password
static bool isValidPassword(String password) { return password.contains(' ') ? false : password.length >= 8; }