added auto login
minor tweak