Adding customized validation.