fixing migrations and branch form for anonymous users