The PHP Login script is designed only to authenticate users, and allow them the opportunity to login from outside the UBB. You can also use that combined with the isset function in order to verify the logged in status.
I utilize the UBB's built in registration functions rather than reinventing the wheel. Personally, I feel that it would be a waste of time and coding to recode the entire registration part in PHP.