Added validations and code for field value validation