how to make validations on sever side - C#