correct faulty admin login expiration logic