New login/register

Bug fixes