auto login

implemented simple auto login function