Fix regex expression to check date format (yyyy-mm-dd). Replace ^ with \A and $ with \z.
Add name to configure_permitted_parameters for devise sign up and account update.