Thanks, added validate_string to foreman::database too for user/password.