is a user name , this should work fine. I would imagine, that either
is not populated correctly, or something more siniter is afoot ... something like a
on the username. I think adding a print above this so you can check
would be a good idea. Also, if you show some more code, we might be able to help more.