Fixed issue with assigning role to user