implementing auto-login

the auto-login makes this work much nicer when installed on an android
device