added migration and login event