Setting possible empty values to null & adding avatar_url for github authentication