a bit late i guess you managed to do it another way;
but if you look at the includes/class_form_login.php file you can see the namespace used is ap\lsw\login_form so you can simply change login_wid::curPageURL with login_form::curPageURL and that should work as intended.