Fix syntax errors in user views