Fixed bugs and added logging in the HyePyeSecurityFilter.requiresRedirect method.