Finalized login scripts.