Added check to see if a user is admin or not