updated login

slightly more progress, id’s in the function