Updated login to check user is in the Administrator group