Added isAdmin functionality