Login page redirects and small fix to config.php