Aesthetic login stuff, fix for unescaped single param database calls