started login logic