worked more on making form validate