After client-side validation, server-side validation should be performed before storing the data in the database. Client-side validation is optional but server-side validation should be done for every application.
Earlier, when a form was filled, the browser used to send the data to the server for validation. If there are any errors, the server will send the request back to the client. This is a time taking process.