Validation of filed values