when switch project, auto login