demo simplified, AddRoleLoginModule added, Apache License v. 2.0