Convert user_id to String before validating

Converting user_id to String before validating it is a handy way to avoid this error:

```
no implicit conversion of Regexp into Integer
```