added validate and observer logic
updated readme