Frontend work, move login/register to view.