auto login in __init__(). testcase updated.