added admin type to protect admin functionality