more login logic