Changed method of determining if user is admin