Added Func to Update Login Count

Added fun to update login count