Fix error when wrong captcha or wrong date ## #5390