Added automatically login

Ref #18