implements active record validations..