add validity check for most of the admin pages