changes for Refactoring permssion and minute change in role and changes for sending errors on user role and permission