Use a login handler and theme to reduce raw html page duplication