set loginCounter for successfully login in UserIdentity.php