chore(login): clean up and add comments