Added second login check