Minor changes to json login, changed ftp to sftp