set roles and user login