check form before register