login logic completed