[BUGFIX] Fix constant type for updateDatabaseTimestamps

The invalid type "check" is replaced with "boolean".
[BUGFIX] Exit after redirect

To make sure the user is not redirected multiple times an exit call
is added after calling doRedirect() in the ValidateAuthCodeDB
preprocessor.

Thanks to Sven Burkert!

Resolves: #54845