Adding autologin feature

see #116