use key to login without password