More solid login method