added new/edit to registrations (not completed) and also added code for saving dates to database