Refactored login/register page.