Fixed file upload, added error handling and the correct redirects