Fixed syntax errors breaking general settings page
Added cookies to sustain a proper login