correct snipp show error with js and avatar, add more validation for snipp