change log level to debug for some statements, add redirect URL to login page