Create loginScript