Modified Logic 

Needed to return a not null errorMsg if no roles are found