update login and did some stuff