fixed sessions bug for admin login