Documentation. Validation of role when registering.