Are you simply looking for a little better error handling around the login fail?  

Also, we'll try to fix the redundant variable names early next week.

Thanks, 

Scott