New login/register

Fix some errors