Pfew. Got a working login script.