now saving in the data base, still need to change some validations in frontend