completion and login regex fix