added unobtrusive validation for inputs