syntax error in courses controller