Adds defensive coding around usernames