WIP: Separating auth methods from base

moving methods that handle authentication and displaying login from away from base

Cc @LukasReschke @MorrisJobke 
We might be able to move this into `handleLogin` - requires further tests.