1) Added ErrorCode enum.
2) Modified BtnVaildate_Click