renamed and started login snippet