Syntax check in controller