add a default avatar; throw an error if the username is not set