Added method for checking if a user has a role