Made ftp login function throw exception