Better layout of code, defer login page to parent class