Make seesion checker for all admin related function