some isset() to Authentication.php added
- unused lines from Upload.php removed
- initial empty $errormsg added