Added support for multiple roles in checkLogin() and requireLogin()