Move login script to scripts