add migrations and repair login form