The short answer is: carefully read the documentation on form validation.
If you are expecting help from other forum members, be more specific about the errors and what you have tried to solve them. How did you setup the form validation rules? Share some code with us. We are programmers, not magicians.