added register admin checking