Add validation check for empty avatar