Changed require in upload to before login errorchecking, so login error shows