Changed login-script to match database structure.