Implemented server side validation.