implemented auto login box