Further impl of login, removed Long IDs