changed hardcoded username to var username