implement to check user write form in valid value.