fixes "user cannot be saved: events not valid" error while changing password