Added debugging code

Addded debugging code to loginSuccessful($username, $password).