Add login/register logic. Not working (server, perhaps?).