fix bug
validate code
fix err in mail