Don't reset $_COOKIE[$cookiename] during TFA authentication

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Update cookie validation regex with increased length of SHA512

Signed-off-by: Shitiz Garg <mail@dragooon.net>