fix for auto login