added users and roles functionality