rename $member-> to $cms-> in login-actions.php