fix admin login if wrong domain is used. Fixes #314