Better handle urls
Wrong var name
Bug in extract_username