Implemented validating and creating fields.