Minor fix
Added database interaction to login script, still broken though