The bug happened when user try to insert a exercise after the first insertion and did not select the date, this was causing a empty Date and a Invalid Date was getting save, the solution was to use a '||' operator to pass a default date when user didn't select one.