Implemented User and Role checks