Make sure to use a valid cookie_secret. fix #2553