corrected variable assignment
handle data without username/password