Login and login count working