Implement the adding of a role
Refactor how the json success and error are called