Added successful login check