Move ftp-login() to startFtpSession()

also fixed some bugs