Fixed the error handling for invalid ftp login

The ftp_login function throws a PHP warning on failure as well as returning false