validating save Method in Persistence class.