added login logic draft