Added SQL injection check.