$rc is undefine when admin login